package xyz.cfg

import org.springframework.beans.factory.BeanFactory
import org.springframework.context.support.ClassPathXmlApplicationContext
import xyz.cfg.TestBean

object TestBeanRunnner extends App {
   val bf:BeanFactory=new ClassPathXmlApplicationContext("/xyz/cfg/co.xml")
   val tb:TestBean=bf.getBean("test").asInstanceOf[TestBean]
   Console.println(tb.getConf+"---")
}